﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections;

namespace TestForm
{
    public partial class Form1 : Form
    {
        DateTime date;
        string introtext, endtext;
        List<Question> a_questions;
        
        public Form1()
        {
            a_questions = new List<Question>();
        }

        private void button_addquestion_Click(object sender, EventArgs e)
        {
            a_questions.Add(new Question(richTextBox_addquestions.Text, comboBox_answeroptions.SelectedIndex));
        }

        private void button_createquestionnaire_Click(object sender, EventArgs e)
        {
            date = dateTimePicker.Value;
            introtext = richTextBox_introtext.Text;
            endtext = richTextBox_endtext.Text;

            //Funny kald til data collection klassen

        }
    }

    public class Question
    {
        int id;
        string question_text;
        int answer_option;

        public Question(string question, int answer_option)
        {
            this.question_text = question;
            this.answer_option = answer_option;
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public string Question_text
        {
            get { return question_text; }
            set { question_text = value; }
        }

        public int Answer_option
        {
            get { return answer_option; }
            set { answer_option = value; }
        }




    }
}
